<?php
$NoTrans=array('></embed>', 'width="725" height="398"');
$Trans=array('wmode="transparent"></embed>', 'width="485" height="257"');
?>
<div class="ContainVideos">
	<div class="TopCalendrier">
	<img src="./images/TopCalendrier.png">
	</div>
	<div class="MainDatesPic">
		<?php
		$a=$AnneeN-2011;
		$vi=0;
		 while($vi<=$a){ 
		$H=2011+$vi;
		 	if($Year==$H){
			$HoverPic="style='background-color:#74736E;'";
			}
			else{
			$HoverPic="";
			}
		 ?>
		<a href="index.php?page=Videos&Year=<?php echo 2011+$vi; ?>"> <div class='DatesPic' <?php echo $HoverPic; ?>>
		<?php echo 2011+$vi;  ?>
		 </div></a>
		 <?php $vi++;
		 }
		
		?>
	</div>
	<div class="clr"></div>
	
	
	<div class="ContenuCalendrierGlobal">
	<div class="ContenuVideo">
	<?php
	$iv=0;
	$recupV=mysql_query("SELECT LinkVideo FROM actualites WHERE Annee='$Year' ORDER BY Annee DESC, Mois DESC, Jour DESC") or die (mysql_error());
	while($data=mysql_fetch_array($recupV)){
	$Video=$data['LinkVideo'];
		if(!empty($Video)){
		$iv++;
		echo "<div class='Videos2'>".str_replace($NoTrans, $Trans, $Video)."</div>";
		}
	}
	if($iv&1){
	echo "<div class='Videos2'><img src='images/Video.jpg'></div>";
	}
	?>
	<div class="clr"></div>
	</div>
	</div>
	<a name="video"></a>
	<div class="Logo" style="padding-bottom:70px; padding-top:30px;">
	<img src="images/Logo.png">
	
	</div>
</div>

<?php include('app/MenuBas.php'); ?>